package com.huilian.iotbox.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

@ComponentScan({"com.huilian"})
@MapperScan({"com.huilian.iotbox.data.dao","com.huilian.iotbox.admin.dao","com.huilian.iotbox.admin.activity.dao","com.huilian.iotbox.admin.quartz.dao"})
@SpringBootApplication
public class AdminPcApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminPcApplication.class, args);
    }

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
